import request from "@/utils/request";
// 查询列表
export function listApi(query) {
  return request({
    url: "/account/queryPage",
    method: "get",
    params: query,
  });
}

// 查询列表
export function listAllApi(query) {
  return request({
    url: "/account/queryAll",
    method: "get",
    params: query,
  });
}
// 修改列表
export function updateApi(data) {
  return request({
    url: "/account/edit",
    method: "put",
    data,
  });
}

// 修改列表
export function updateBatchApi(data) {
  return request({
    url: "/account/editBatch",
    method: "put",
    data,
  });
}


// 修改列表
export function createApi(data) {
  return request({
    url: "/account/add",
    method: "post",
    data,
  });
}

// 修改列表
export function deleteApi(data) {
  return request({
    url: "/account/remove",
    method: "delete",
    data,
  });
}

// 修改列表
export function batchDeleteApi(data) {
  return request({
    url: "/account/removeBatch",
    method: "delete",
    data,
  });
}

// 获取系统参数
export function getSystemApi() {
  return request({
    url: "/system",
    method: "get",
    params: {
      id: '100'
    },
  });
}

// 更新系统参数
export function updateSystemApi(data) {
  return request({
    url: "/system",
    method: "put",
    data: {
      content: data,
      id: '100'
    },
  });
}